package com.liujun.spring4.demo.aop.ioc.base.annotationbeans;

import com.liujun.spring4.demo.aop.ioc.base.beanFactory.Car;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;

/**
 * @author liujun
 * @version 1.0
 * @date 2018-08-12 08:17:00
 */
@Configurable
public class Beans {

    @Bean(name="car")
    public Car buildCar()
    {
        Car car = new Car();

        car.setBrand("宝马M3");
        car.setColor("黑色");
        car.setMaxSpeed(350);

        return car;
    }

}
